﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StyleMVVM.Data.Transform
{
	public sealed class TransformPropertyMap : ITransformPropertyMap, ITransformPropertyMapInfo
	{
		public ITransformMap TransformMap { get; set; }

		public ITransformPropertyMap From(string propertyName, Type propertyType)
		{
			PropertyName = propertyName;
			PropertyType = propertyType;

			return this;
		}

		public ITransformMap To(string propertyName, Type transformType)
		{
			ToPropertyName = propertyName;
			TransformType = transformType;

			return TransformMap;
		}

		public string PropertyName { get; private set; }

		public string ToPropertyName { get; private set; }

		public Type PropertyType { get; private set; }

		public Type TransformType { get; private set; }
	}
}